package com.iakuil.app.service.converter;

import com.iakuil.app.common.core.DefaultConverterConfig;
import com.iakuil.app.domain.entity.Book;
import com.iakuil.app.domain.dto.BookDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import org.springframework.core.convert.converter.Converter;

/**
 * 书籍转换器
 *
 * @author Kai
 * @date 2023-11-28
 **/
@Mapper(config = DefaultConverterConfig.class)
public interface BookToBookDtoConverter extends Converter<Book, BookDto> {
    BookToBookDtoConverter INSTANCE = Mappers.getMapper(BookToBookDtoConverter.class);
}
